<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/OptionBar.css">
</head>
<body>
<div id="Option_bar_box">
    <%--//背景图--%>
    <div class="background">
        <div class="backgroundLeft"></div>
        <div class="backgroundRight"></div>
    </div>
    <div class="Option_icon">
        <%--首页图标--%>
        <div class="Icon_head">
            <a href="${pageContext.request.contextPath}/jsp/Index.jsp">
                <img src="${pageContext.request.contextPath}/img/tubiao.PNG" alt="加载中。。。">
            </a>
            <div class="Icon_head_page">
                <a href="">首页</a>
            </div>
        </div>
        <%--搜索栏和个人中心--%>
        <div class="home_page">
            <%--搜索栏--%>
            <div class="input_page">
                <form action="" method="get">
                    <input class="input_page_fi" type="text" autocomplete="off" value="" id="suggest_search"
                           placeholder="请输入你想输入的关键字">
                    <input class="input_button" type="button" value="搜索">
                </form>
            </div>
            <%--登录|注册--%>
            <c:if test="${empty sessionScope.loginUser}" var="isLogin">
                <div class="login_page" id="login_page">
                    <div class="Head_portrait" id="Head_portrait"></div>
                    <a href="${pageContext.request.contextPath}/jsp/login.jsp">登录</a>
                    <em class="fl">|</em>
                    <a href="${pageContext.request.contextPath}/jsp/register.jsp">注册</a>
                </div>
            </c:if>
            <c:if test="${!isLogin}">
                <%--个人中心--%>
                <div id="Personal_center">
                    <div class="Head_portrait_a"><img src="${pageContext.request.contextPath}${sessionScope.loginUser.photoImgUrl}" alt="">
                    </div>
                    <a href="${pageContext.request.contextPath}/anchorSearch?methodName=queryAttentionAnchor">个人中心</a>&nbsp;&nbsp;&nbsp;
                    <a href="${pageContext.request.contextPath}/jsp/cancellation.jsp">注销</a>
                </div>
            </c:if>

        </div>
    </div>
</div>
</body>
</html>
